package main

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/dialog"
	"ping-info-go/internal/config"
	"ping-info-go/internal/ui"
)

func main() {
	config.DoInit()

	a := app.New()
	w := a.NewWindow("成都地铁网络测试系统")
	fyne.CurrentApp().Settings().SetTheme(ui.LightTheme())
	dialog.ShowCustom("", "OK", ui.MakeNotice(w), w)
	w.SetContent(ui.MakeLayout(w))
	w.Resize(fyne.NewSize(800, 600))

	w.ShowAndRun()
}
